<?php
/**
 * 地图找房策略模型
 */

namespace app\api\model;


use app\common\model\BaseModel;

class MapStrategy extends BaseModel {

    /**
     * 地图找房策略
     * @param $city_code
     * @return mixed
     */
    public static function getMapType($city_code) {
        $data = db('map_strategy')->where('city_code', $city_code)->value('type');
        if (empty($data)) {
            return 1;
        } else {
            return $data;
        }
    }

}
